package bsi.vn.FirstApp;

import bsi.vn.Lib.ProcessFunc;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.MenuItem;

public class UserInfoActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_user_info);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.atmsearch, menu);
		return super.onCreateOptionsMenu(menu);
	}
	
	@Override
	public boolean onMenuItemSelected(int featureId, MenuItem item) {
		if(item.getItemId() != R.id.menu_sub && item.getItemId() != R.id.menu_information){
			startActivity(ProcessFunc.MenuAction(this, item));
		}
		
		return true;
	}
	
	@Override
	  public boolean onOptionsItemSelected(MenuItem item) {
	    switch (item.getItemId()) {
	    case R.id.uiInformation:
	    	//startActivity(new Intent(UserInfoActivity.this, UserInfoActivity.class));
	      break;
	    case R.id.uiChangePass:
	      
	      break;

	    default:
	      break;
	    }

	    return true;
	  } 

}
